﻿@model Olemas.ViewModels.ConspectsViewModel
@foreach (var conspect in Model.Conspects)
{
    var type = conspect.Conspect_Files.Count > 1 ? "mix" : conspect.Conspect_Files.First().Extension;

    <a href="@Url.Action("Conspect", "Details", new { Id = conspect.Id })" class="recentConspectItem">
        <img src="~/Content/Site_Images/@String.Format("{0}.png", type)" alt="konspekt"/>

        @Html.LabelFor(z => z.Conspects, conspect.Name)
        @Html.LabelFor(z => z.Conspects, conspect.Course.Name)
    </a>
}


<div class="loadNextItemsDiv" style="display: none">
    <a id="loadNextConspects">@Model.PagesRemaining</a>
</div>

